package org.thoughtworks.selenium.flex.codec;

/*
<EnumValue Name="flexControl"                   RealValue="1" />
<EnumValue Name="flexShift"                     RealValue="2" />
<EnumValue Name="flexAlt"                       RealValue="4" />
<EnumValue Name="flexControlShift"              RealValue="3" />
<EnumValue Name="flexControlAlt"                RealValue="5" />
<EnumValue Name="flexShiftAlt"                  RealValue="6" />
<EnumValue Name="flexControlShiftAlt"           RealValue="7" />
 */
public enum KeyModifier {

    UNKNOWN("0"),
    CONTROL("1"),
    SHIFT("2"),
    CONTROL_SHIFT("3"),
    ALT("4"),
    CONTROL_ALT("5"),
    SHIFT_ALT("6"),
    CONTROL_SHIFT_ALT("7");

    private final String keyValue;

    KeyModifier(String keyValue) {
        this.keyValue = keyValue;
    }

    public String value() {
        return keyValue;
    }

    @Override
    public String toString() {
        return keyValue;
    }

}
